using System;
using System.Collections.Generic;
using System.Text;

namespace Colman.Rpg.Messaging
{
    /// <summary>
    /// Represents a player's action request during a round of fighting.
    /// </summary>
    [Serializable]
    public class FightRequest : RequestMessage
    {
        /// <summary>
        /// Creates a new instance of <see cref="FightRequest" />.
        /// </summary>
        /// <param name="action">The action requested.</param>
        public FightRequest(FightActionType action)
        {
            this.action = action;
        }

        #region ActionType Action { get; } (action)
        private FightActionType action;

        /// <summary>
        /// Gets the action requested.
        /// </summary>
        public FightActionType Action
        {
            [System.Diagnostics.DebuggerStepThrough]
            get
            {
                return this.action;
            }
        }
        #endregion
    }
}
